package com.baseweb.webadmin.core.model.bvo;

import com.baseweb.webadmin.core.model.pojo.ByUserExample;
import com.baseweb.webadmin.core.model.pojo.User;

public class ByUserExampleBvo extends ByUserExample {

    private UserInfoBvo userInfoBvo;
    private String orderDesn;
    private String exampleName;
    private boolean isFollow;

    public static ByUserExampleBvo copyFrom(ByUserExample byUserExample, UserInfoBvo userInfoBvo) {
        ByUserExampleBvo bvo = new ByUserExampleBvo();
        bvo.setId(byUserExample.getId());
        bvo.setUserId(byUserExample.getUserId());
        bvo.setImgUrl(byUserExample.getImgUrl());
        bvo.setName(byUserExample.getName());
        bvo.setDescn(byUserExample.getDescn());
        bvo.setStatus(byUserExample.getStatus());
        bvo.setViewCount(byUserExample.getViewCount());
        bvo.setOrderId(byUserExample.getOrderId());
        bvo.setOrderDetailId(byUserExample.getOrderDetailId());

        bvo.setCreateTime(byUserExample.getCreateTime());
        bvo.setUpdateTime(byUserExample.getUpdateTime());
        bvo.setUserInfoBvo(userInfoBvo);
        return bvo;
    }

    public boolean isFollow() {
        return isFollow;
    }

    public void setFollow(boolean follow) {
        isFollow = follow;
    }

    public UserInfoBvo getUserInfoBvo() {
        return userInfoBvo;
    }

    public void setUserInfoBvo(UserInfoBvo userInfoBvo) {
        this.userInfoBvo = userInfoBvo;
    }

    public String getOrderDesn() {
        return orderDesn;
    }

    public void setOrderDesn(String orderDesn) {
        this.orderDesn = orderDesn;
    }

    public String getExampleName() {
        return exampleName;
    }

    public void setExampleName(String exampleName) {
        this.exampleName = exampleName;
    }
}
